package com.example.gxtt.admin.webapi.service.impl;

import cn.tedu.gxtt.admin.service.IAdminService;
import cn.tedu.gxtt.commons.pojo.admin.AdminUpdateEnable;
import com.example.gxtt.admin.webapi.mapper.AdminMapper;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@DubboService
@Service
@Slf4j
public class AdminServiceImpl implements IAdminService {
    @Autowired
    private AdminMapper adminMapper;

    @Override
    public void updateUserEnable(AdminUpdateEnable adminUpdateEnable) {
        Integer id = adminUpdateEnable.getId();
        Integer isEnable = adminUpdateEnable.getIsEnable();
        adminMapper.updateUserEnable(id,isEnable);
    }
}
